package com.supreme.commonmybatis.service;

import org.springframework.lang.Nullable;

import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Method;

public interface FindAnnoService<TA extends Annotation> {

    TA findAnnotation(Class<?> clazz, Class<TA> annotationType);

    TA findAnnotation(AnnotatedElement annotatedElement, Class<TA> annotationType);

    TA findAnnotation(Method method, @Nullable Class<TA> annotationType);
}
